package com.wdl.modules.myhouse.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wdl.modules.myhouse.dao.AnimesDao;
import com.wdl.modules.myhouse.dao.UserAnimeDao;
import com.wdl.modules.myhouse.entity.AnimesEntity;
import com.wdl.modules.myhouse.service.AnimesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 动漫表
 *
 * @author lucain sunlightcs@gmail.com
 * @since 1.0.0 2022-09-10
 */
@Service
public class AnimesServiceImpl extends ServiceImpl<AnimesDao, AnimesEntity> implements AnimesService {


    @Autowired
    private AnimesDao animesDao;
    @Autowired
    private UserAnimeDao userAnimeDao;

    @Override
    public Map<Integer, Object> getAnimeByUserId(Integer userId) {
        return userAnimeDao.getAnimeByUserId(userId);
    }
}